/* 问卷提交成功页面样式 */

.survey-success-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-success-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    z-index: 1;
}

.survey-success-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 粒子动画背景 */
.success-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: floatParticles 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    width: 18px;
    height: 18px;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    width: 12px;
    height: 12px;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 5s;
}

.particle:nth-child(6) {
    width: 22px;
    height: 22px;
    left: 60%;
    animation-delay: 5s;
    animation-duration: 10s;
}

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.survey-success-container {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.survey-success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    animation: successCardAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

@keyframes successCardAppear {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8) rotateX(15deg);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.survey-success-body {
    padding: 60px 50px;
    position: relative;
}

/* 成功图标容器 */
.survey-success-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.survey-success-icon {
    font-size: 6rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 3;
    animation: successBounce 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

/* 波纹效果 */
.success-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 3px solid #10b981;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleEffect 3s ease-out infinite;
    opacity: 0;
}

.success-ripple:nth-child(2) {
    animation-delay: 0.8s;
    border-color: #059669;
}

.success-ripple:nth-child(3) {
    animation-delay: 1.6s;
    border-color: #047857;
}

/* 成功光晕效果 */
.success-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    30% {
        transform: scale(0.3) rotate(-90deg);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.15) rotate(-20deg);
        opacity: 1;
    }
    80% {
        transform: scale(0.95) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 统计信息 */
.survey-success-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.success-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 140px;
    transition: all 0.3s ease;
}

.success-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.success-stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-stat-item:hover .stat-icon::before {
    opacity: 0.2;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

.survey-success-title {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 800;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    letter-spacing: -0.02em;
}

.survey-success-message {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 17px;
    line-height: 1.7;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
    font-weight: 400;
}

.survey-success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

.survey-success-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.survey-success-btn i {
    margin-right: 8px;
}

.survey-success-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.survey-success-btn:hover::before {
    left: 100%;
}

.survey-success-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.survey-success-btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

.survey-success-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #64748b;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.survey-success-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    color: #475569;
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 装饰元素 */
.survey-success-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 100%;
    animation: decorationFlow 4s ease-in-out infinite;
}

@keyframes decorationFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.survey-success-card {
    position: relative;
}

/* 动画关键帧 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .survey-success-page {
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .survey-success-container {
        padding: 20px 16px;
    }
    
    .survey-success-body {
        padding: 50px 32px;
    }
    
    .survey-success-icon {
        font-size: 4.5rem;
    }
    
    .survey-success-icon-container {
        margin-bottom: 32px;
    }
    
    .survey-success-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .survey-success-message {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .survey-success-stats {
        gap: 16px;
        margin: 32px 0;
    }
    
    .success-stat-item {
        min-width: 120px;
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .survey-success-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .survey-success-btn {
        width: 100%;
        padding: 16px 24px;
    }
    
    .success-ripple {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .survey-success-page {
        padding-top: 20px;
    }
    
    .survey-success-container {
        padding: 16px 12px;
    }
    
    .survey-success-body {
        padding: 40px 24px;
    }
    
    .survey-success-icon {
        font-size: 4rem;
    }
    
    .survey-success-title {
        font-size: 1.6rem;
    }
    
    .survey-success-message {
        font-size: 15px;
    }
    
    .success-stat-item {
        min-width: 100px;
        padding: 14px 18px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 悬浮效果 */
.survey-success-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.survey-success-card:hover::before {
    opacity: 0.1;
}

/* 成功徽章样式 */
.survey-success-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
    animation: badgeBounce 1s ease-out 1s both;
}

@keyframes badgeBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-90deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 按钮点击波纹效果 */
@keyframes buttonRipple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}